<?php /* Smarty version 2.6.18, created on 2009-05-07 08:03:54
         compiled from room/message.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'room/message.html', 71, false),array('modifier', 'date_format', 'room/message.html', 73, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<title>商务室 - <?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<link href="<?php echo $this->_tpl_vars['CSS_PATH']; ?>
css/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_tpl_vars['INC_PATH']; ?>
css/room.css" rel="stylesheet" type="text/css">
<script language="javascript" src="<?php echo $this->_tpl_vars['INC_PATH']; ?>
js/general.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['INC_PATH']; ?>
js/prototype.js"></script>
<script>
function test(){
var form = $('msinfrm') ;
var t = form.getInputs("checkbox");
var chked = 0;
for (i=0; i<t.length; i++)
{
	if($(t[i]).checked)
	chked++;
}
if(chked<=0){
	alert("您没有选中任何留言");
	return false;
}else{
	return true;
}
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td height="83"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/element.top.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr align="center" valign="top">
    <td width="180" align="center" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/left_bg.gif"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/menu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
    <td><table  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/banr_pic.gif" width=570 height=101 alt=""></td>
      </tr>
    </table>
      <table width="95%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="45" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/title_bg.gif"><table height="30" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><a  name="min"></a>&nbsp;</td>
                <td class="font14b_org"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/icon_newd.gif" width="15" height="16"> <?php if ($_GET['type'] == 'in'): ?>收到的留言<?php else: ?>发出的留言<?php endif; ?></td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td height="5" valign="top" class="bggray2"></td>
        </tr>
      </table>
      <br>
	  <form name="msinfrm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
">
	  <input type="hidden" name="type" value="in">
	  <input type="hidden" name="act" value="in">
      <table width="95%%"  border="0" cellspacing="0" cellpadding="0">
        <tr align="center">
          <td><table width="100%"  border="0" cellpadding="5" cellspacing="1" class="bgblue">
            <tr align="center">
              <td height="30"><strong>选择</strong></td>
              <td height="30"><strong>主 题</strong></td>
              <td height="30"><strong>状 态</strong></td>
              <td ><strong>时 间</strong></td>
            </tr>
			<?php $_from = $this->_tpl_vars['Messages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['companymessage'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['companymessage']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['cm']):
        $this->_foreach['companymessage']['iteration']++;
?>
            <tr align="center" class="bggray">
              <td><input type="checkbox" name="messageid[]" value="<?php echo $this->_tpl_vars['cm']['ID']; ?>
" id="messageid_<?php echo $this->_tpl_vars['cm']['ID']; ?>
"></td>
              <td align="left"><a href="message.php?type=<?php echo $_GET['type']; ?>
&action=view&id=<?php echo $this->_tpl_vars['cm']['ID']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['cm']['Title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 30) : smarty_modifier_truncate($_tmp, 30)); ?>
</a></td>
              <td class="orange"><?php echo $this->_tpl_vars['cm']['Status']; ?>
</td>
              <td><?php echo ((is_array($_tmp=$this->_tpl_vars['cm']['CreateDate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
            </tr>
			<?php endforeach; else: ?>
			<?php endif; unset($_from); ?>
          </table>
		  </td>
        </tr>
        <tr align="center">
          <td>&nbsp;</td>
        </tr>
        <tr align="center">
          <td><table width="100%"  border="0" cellspacing="0" cellpadding="1">
              <tr>
                <td height="1" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/index_trade_line.gif"></td>
              </tr>
          </table></td>
        </tr>
        <tr align="center" valign="bottom">
          <td height="40"><input  name="del" type=submit id="del" value=" 删除选中的 " onclick="return test();"></td>
        </tr>
      </table>
	  </form>
    </td>
  </tr>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/foot.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</center>
 </html>
